package com.onetech.adrewards.free.dialogs;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.google.analytics.tracking.android.Fields;
import com.google.analytics.tracking.android.MapBuilder;
import com.google.analytics.tracking.android.Tracker;
import com.onetech.adrewards.free.R;
import com.zuzu.dialogs.BaseDialogNoTitleBar;


public class ReviewAppSuccessDialog extends BaseDialogNoTitleBar {
	private Tracker mTracker;
	private Context mContext=null;
	public ReviewAppSuccessDialog(Context context, String title,String message) {
		super(context, title, TYPE_NO_BUTTON, R.layout.dialog_review_app_success);
		
		((TextView) findViewById(R.id.msg)).setText(message);
		
		mContext=context;		
	}
	@Override
	public void onClick(View view) {
		super.onClick(view);		
	}
	@Override
    public void onStart() {
        super.onStart();
        try {
            mTracker.set(Fields.SCREEN_NAME, mContext.getString(R.string.ReviewAppSuccessDialog));            
            mTracker.send(MapBuilder.createAppView().build());            
		} catch (Exception e) {
		}
    }
}
